let timeChange1=(time)=>{
    const d = new Date(time)
    const resDate = d.getFullYear() + '-' + coverMethod((d.getMonth() + 1)) + '-' + coverMethod(d.getDate())
    const resTime = coverMethod(d.getHours()) + ':' + coverMethod(d.getMinutes()) + ':' + coverMethod(d.getSeconds()) + ':' +d.getMilliseconds();
    let t=resDate+' '+resTime
   return timeChange2(t)
}
let timeChange2=(time)=>{
    var date = new Date(time);
    var time1 = date.getTime();
    return time1
}
let coverMethod=(s)=>{
    return s < 10 ? '0' + s : s
}
export {
    timeChange1,
    timeChange2,
}